package cc.lj.internal.coupons.infrastructure.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 合同收券记录表PO
 * @author liangxifeng
 * @date 2021-12-14
 */
@Data
@NoArgsConstructor
@TableName("ticket_pay_record")
@Accessors(chain = true)
public class TicketPayRecordPO {
    /**
     * 主键
     */
    private Integer	id;

    /**
     * 合同号
     */
    private String	pactNumber;

    /**
     * 收券类型：product_conume/mall_order
     */
    private String	grantType;

    /**
     * 券使用码
     */
    private String	ticketUsecode;

    /**
     * 状态：0正常收款状态,1退款状态,2冲红状态
     */
    private Integer	status;

    /**
     * 合同表product_conume主键
     */
    private Integer	pactId;

    /**
     * 关联批次表主键
     */
    private Integer	ticketBatchId;

    /**
     * 券面额
     */
    private BigDecimal ticketPrice;

    /**
     * 商户分摊金额
     */
    private BigDecimal	merchantSharePrice;

    /**
     * 记录时间
     */
    private LocalDateTime recordDate;
}
